package com.santu.edu.supporter.biz.school.dao.mapper;

import com.santu.edu.supporter.biz.school.pojo.dto.SchoolDTO;
import com.santu.edu.supporter.biz.school.pojo.po.SchoolPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author npc234
 * @description 针对表【edu_supporter_school】的数据库操作Mapper
 * @createDate 2024-02-21 15:36:42
 * @Entity generator.domain.School
 */
@Mapper
public interface SchoolMapper {

    /**
     * 新增一条记录
     *
     * @param item
     */
    void insertOne(@Param("item") SchoolPO item);

    /**
     * 根据学校名称查询学校ID
     * @param schoolName
     * @return
     */
    List<SchoolDTO> selectSchoolIdByName(@Param("schoolName") String schoolName);

    /**
     * 根据学校ID查询学校信息
     * @param schoolId
     * @return
     */
    SchoolDTO selectSchoolById(@Param("schoolId") String schoolId);
}




